:root {
    --header: 66px;
    --themColor: #00bdff;
    --writeColor: #fff;
    --fontColor: #666;
    --borderColor: #dddddd;
}

/* -----------------头部 --------------*/
header {
    top: 0;
    left: 0;
    height: var(--header);
    width: 100%;
    min-width: 1200px;
    z-index: 40;
    /* background-color: transparent; */
    background-color: #f1f1f1;
    color: var(--fontColor);
    padding: 20px 28px;
    border-bottom: 1px solid #88afe7;
}

/* 头部logo */
header h2 a {
    font-size: 0px;
    display: block;
    width: 140px;
    height: 30px;
    background: url(../images/api-new-logo-white.png) no-repeat;
}

/* 头部导航栏 */
header ul li {
    float: left;
    width: 50px;
    line-height: 64px;
    text-align: center;
    margin-right: 38px;
    cursor: pointer;
}

header ul li a {
    color: var(--fontColor);
}

/* 导航栏激活样式 */
header ul .active a {
    color: var(--themColor);
    font-weight: bold;
}

header ul li.active {
    border-bottom: 3px solid var(--themColor);
}

/* 登录,注册按钮 */
header .login,
header .register {
    border-radius: 20px;
    padding: 6px 15px;
    color: var(--fontColor);
}

header .login {
    border: 1px solid var(--fontColor);
    margin-right: 8px;
    background-color: var(--writecolor);
}

header .login a,
header .register a {
    color: var(--color);
}

header .register {
    color: var(--writeColor);
    background-color: #ed510a;
    border: 1px solid #ed510a;
}


/* 粒子部分 */
/* banner区 */
#banner {
    width: 100%;
    height: 416px;
    position: relative;
}

#bannerBg {
    top: 66px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 350px;
    background-color: #f1f1f1;
}

/* api详情 */
#center {
    position: absolute;
    top: 66px;
    width: 950px;
    height: 350px;
    /* background-color: #ccc; */
    /* margin-top: 66px; */
    padding: 40px 0;
    box-sizing: border-box;
    margin: 0 auto;
    /* z-index: 2; */
}

/* 左边图片部分 */
#center .detailPic {
    /* position: absolute; */
    width: 260px;
    height: 270px;
    padding: 50px 40px 25px 40px;
    box-sizing: border-box;
    /* margin: 0 auto; */
    background-color: var(--writeColor);
    float: left;
    /* display: flex; */
}

#center .detailPic>img {
    /* align-items: center; */
    height: 90px;
    width: 130px;
    padding: 0 30px;
    margin-bottom: 45px;
}

.detailPic ul {
    width: 180px;
    height: 40px;
    display: flex;
    align-items: center;
}

.detailPic ul li {
    float: left;
    width: 60px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #c5c5c5;
}

/* 右边文字细节 */
.detail {
    padding: 20px 0;
    box-sizing: border-box;
    width: 620px;
    height: 270px;
    float: right;
    text-align: left;
}

.detail h1 {
    font-size: 22px;
    font-weight: bold;
    color: #555555;
    margin-bottom: 15px;
}

.detail h1 span {
    font-size: 14px;
    border: 1px solid var(--themColor);
    color: var(--themColor);
    font-weight: normal;
    padding: 3px 10px;
    margin: 12px;
}

.detail #requ {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail #requ li {
    float: left;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    color: #fea610;
}

.detail #requ li img {
    margin-right: 6px;
    vertical-align: middle;
}

.detail #text {
    font-size: 12px;
    color: #555555;
    height: 35px;
    line-height: 25px;
}

/* 动态渲染数据 */
#option {
    width: 100%;
    height: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

#option li {
    margin-right: 15px;
    padding: 8px 15px;
    border: 1px solid var(--fontColor);
    color: var(--fontColor);
    cursor: pointer;
}

#option li:nth-child(1) {
    padding-left: 30px;
    background: url(../images/API17.jpg) no-repeat 8px 10px;
    position: relative;
}

#option li:nth-child(1)>img {
    position: absolute;
    top: 34px;
    left: -1px;
    display: none;
}

#option li:nth-child(1)>p {
    position: absolute;
    top: 148px;
    left: 24px;
    display: none;
}

/* 鼠标移入显示二维码 */
#option li:nth-child(1):hover img,
#option li:nth-child(1):hover p {
    display: block;
}

#option .blue {
    border: 1px solid var(--themColor);
    color: var(--themColor);
}

#option .active {
    border: 1px solid var(--themColor);
    background: url(../images/select.png) no-repeat right bottom;
    color: var(--themColor);
}

.detail>div {
    margin-bottom: 40px;
}

#price {
    font-size: 20px;
    font-weight: bold;
    color: #fb5b5b;
    float: left;
}

#money {
    font-size: 12px;
    color: #555555;
    font-weight: normal;
    line-height: 25px;
}

/* 立即申请 */
.detail a {
    display: inline-block;
    color: var(--writeColor);
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--themColor);
}


/* 选项卡部分 */
#APITab {
    width: 100%;
    height: 50vh;
}

/* 选项卡内容 API导航栏 */
#APINav {
    width: 100%;
    height: 46px;
    display: flex;
    margin-bottom: 55px;
}

#APINav li {
    height: 46px;
    line-height: 46px;
    text-align: center;
    margin-right: 110px;
    font-size: 16px;
    cursor: pointer;
}

#APINav li a {
    color: var(--fontColor);
}

/* 选项卡内容 导航栏激活样式 */
#APINav .active a {
    color: var(--themColor);
    font-weight: bold;
}

#APINav li.active {
    border-bottom: 3px solid var(--themColor);
}

/* 选项卡内容 API测试工具 */
#detailBox div {
    display: none;
}

#detailBox div.on {
    display: block;
}

#detailBox>div:nth-child(1)>p {
    font-size: 12px;
    color: var(--fontColor);
    margin-bottom: 25px;
}

#detailBox>div:nth-child(1)>p>span {
    font-weight: bold;
}

#detailBox>div:nth-child(1)>p:last-child {
    width: 150px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-size: 16px;
    color: var(--writeColor);
    background-color: var(--themColor);
}

/* 选项卡内容 请求参数说明 */
#detailBox>div:nth-child(2)>h3,
#detailBox>div:nth-child(3)>h3,
#detailBox>div:nth-child(4)>h3 {
    height: 16px;
    width: 300px;
    line-height: 16px;
    font-size: 16px;
    border-left: 4px solid var(--themColor);
    padding-left: 10px;
    /* padding: 8px 10px; */
    font-weight: bold;
}

/* #detailBox>div:nth-child(2)>h3::before,
#detailBox>div:nth-child(3)>h3::before,
#detailBox>div:nth-child(4)>h3::before {
    content: "";
    display: block;
    height: 30px;
    width: 4px;
    background-color: var(--themColor);
} */

#detailBox>div:nth-child(4) {
    position: relative;
}

#detailBox>div:nth-child(4)>p {
    position: absolute;
    top: -12px;
    left: 150px;
    width: 180px;
    height: 40px;
    background-color: #1271ef;
    color: var(--writeColor);
    line-height: 40px;
    text-align: center;
    border-radius: 6px;
}

/* 请求参数说明 */
#detailBox>div>ul {
    margin-top: 30px;
}

#detailBox>div>ul>li {
    height: 34px;
    width: 920px;
    border: 1px solid #f0f0f0;
    border-bottom: none;
}

#detailBox>div>ul>li:first-child {
    background-color: #fbfbfb;
}

#detailBox>div>ul>li:last-child {
    border-bottom: 1px solid #f0f0f0;
}

#detailBox>div>ul>li>span {
    display: inline-block;
    width: 100px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    padding-left: 15px;
}


/* 立即体验部分 */
#try {
    width: 100%;
    height: 240px;
    /* background-color: rgb(18, 113, 239); */
    background: url(../images/bottombg.png) no-repeat center center;
    background-size: cover;
    position: relative;
}

#try h1 {
    font-size: 30px;
    text-align: center;
    color: var(--writeColor);
    padding-top: 70px;
}

#try span a {
    font-size: 12px;
    padding: 14px 40px;
    border: 1px solid var(--writeColor);
    color: var(--writeColor);
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translate(-50%);
}